package com.managertrade.dto;


import com.managertrade.dao.mysql.entity.SysRole;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
@Data
@NoArgsConstructor
public class SysRoleDTO {
    private Long id;

    private String name;

    private String code;

    private Integer status;

    private Date createTime;

    public SysRoleDTO(SysRole sysRole) {
        this.id = sysRole.getId();
        this.name = sysRole.getName();
        this.code = sysRole.getCode();
        this.status = sysRole.getStatus();
        this.createTime = sysRole.getCreateTime();
    }
}
